import numpy as np
import sklearn.preprocessing as sp

import pandas as pd
data = pd.read_csv('../data_test/car.txt',
                   header=None)
# print(data)
res_data = pd.DataFrame()
for i in data:
    encoder = sp.LabelEncoder()
    res = encoder.fit_transform(data[i])
    res_data[i] = res

print(res_data)



